﻿<Page x:Class="MyCalManager.View.AboutView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="650" d:DesignWidth="550"
	  Title="AboutView"
      DataContext="{Binding About, Source={StaticResource Locator}}">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Skins/MainSkin.xaml" />
                <ResourceDictionary Source="/Skins/Theme.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="45"></RowDefinition>
        </Grid.RowDefinitions>
        <Border Margin="5" BorderBrush="GhostWhite" BorderThickness="1" CornerRadius="10" Grid.RowSpan="2" />
            <StackPanel Margin="15" >
                <Label Content="{Binding Product}" FontSize="16" Margin="2">
                    <Label.Effect>
                        <DropShadowEffect></DropShadowEffect>
                    </Label.Effect>
                </Label>
            <StackPanel Orientation="Horizontal" Margin="2">
                    <Label Content="Version - " />
                    <Label Content="{Binding Version}" />
                </StackPanel>
            <Label Content="{Binding Copyright}" Margin="2" />
            <Label Content="{Binding Company}" Margin="2"/>
            <Label Content="All Rights Reserved." Margin="2"/>
            <Label Padding="0,10,0,0" Content="Product details:" Margin="2"/>
                <TextBox Text="{Binding Description,Mode=OneTime}"
                         MinLines="6"
                         MaxLines="15"
                         HorizontalAlignment="Left"
                         Width="500"
                         IsReadOnly="True"
                         TextWrapping="WrapWithOverflow"
                         VerticalScrollBarVisibility="Visible">
                </TextBox>
                <TextBlock Margin="5">
                    <Hyperlink Command="{Binding Kaloma}">Kaloma Site</Hyperlink>
                    <LineBreak />
                    <Hyperlink Command="{Binding GNU}"> GNU Licences</Hyperlink>
                </TextBlock>
        </StackPanel>
        <Button Margin="15,0,0,5" Grid.Row="1" Content="{Loc Back}" Width="70" Height="30" Command="{Binding Back}" HorizontalAlignment="Left"></Button>
    </Grid>
</Page>
